import {Button} from "react-native";
import {SetStateActionType} from "../common/Type";

type PlayProps = {
    setHungerValue: SetStateActionType<number>,
    setWaterValue: SetStateActionType<number>,
    setHealthValue: SetStateActionType<number>,
    setMoodValue: SetStateActionType<number>,
}

export default function Play({setHungerValue, setWaterValue, setHealthValue, setMoodValue}: PlayProps) {
    function play(){
        setMoodValue(
            prevMoodValue => prevMoodValue + 10
        );
    }
    return (

        <Button title="Play" onPress={play}/>
    );
}

